<%@ page language="java" pageEncoding="UTF-8"%>

<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html:html lang="true">
<head>
	<html:base />

	<title>news_update.jsp</title>

	<meta http-equiv="pragma" content="no-cache" />
	<meta http-equiv="cache-control" content="no-cache" />
	<meta http-equiv="expires" content="0" />
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3" />
	<meta http-equiv="description" content="This is my page" />
	<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/css/base_orange.css" />
	<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/plugin/jquery/css/ui-lightness/jquery-ui-1.8.2.custom.css" />
	<script type="text/javascript" src="<%=request.getContextPath()%>/js/base.js"></script>	
	<script type="text/javascript" src="<%=request.getContextPath()%>/plugin/jquery/js/jquery-1.4.2.min.js"></script>
	<script type="text/javascript" src="<%=request.getContextPath()%>/plugin/jquery/js/jquery-ui-1.8.2.custom.min.js"></script>
	<script type="text/javascript">
		$(function(){
			$("#tabs").tabs();
		});
	</script>
</head>

<body>
	<html:form action="/news">
		<table class="title1">
			<tr>
				<td class="title1_td1">
					新闻管理 - 修改
				</td>
				<td class="title1_td2">
					<input class="button_2zi" type="button" value="保 存"
						onclick="if(validateEmpty(new Array('title', 'author', 'createTimeStr'))) dosubmit(this.form, '../news.do?method=updateNewsDo');" />
					<input class="button_2zi" type="reset" value="撤 销" />
					<input class="button_2zi" type="button" value="返 回"
						onclick="history.back();" />
				</td>
			</tr>
		</table>
		<div id="tabs">
			<ul>
				<li><a href="#tab1">基本信息</a></li>
				<li><a href="#tab2">详细内容</a></li>
			</ul>
			<div id="tab1">
				<table>
					<tr>
						<td class="td30">
							标题
						</td>
						<td class="td70">
							<html:hidden property="id"></html:hidden>
							<html:text property="title"></html:text>&nbsp;&nbsp;*
						</td>
					</tr>
					<tr>
						<td class="td30">
							作者
						</td>
						<td class="td70">
							<html:text property="author" value="admin"></html:text>&nbsp;&nbsp;*
						</td>
					</tr>
					<tr>
						<td class="td30">
							创建时间
						</td>
						<td class="td70">
							<html:text property="createTimeStr"></html:text>&nbsp;&nbsp;*
						</td>
					</tr>
					<tr>
						<td class="td30">
							置顶
						</td>
						<td class="td70">
							<html:select property="top">
								<html:options collection="topList" property="label" labelProperty="value" />
							</html:select>&nbsp;&nbsp;*
						</td>
					</tr>
				</table>
			</div>
			<div id="tab2">
				<textarea id="ckeditor" name="des" cols="80" rows="10">
					${newsForm.des}
				</textarea>
				<jsp:include page="/admin/core/editor/editor.jsp"></jsp:include>
			</div>
		</div>
	</html:form>
</body>
</html:html>
